package jsyf.oa.entity.device;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by jjx on 2018/3/8.
 */
@Entity
@Table(name = "T_DVC_BRAND", schema = "oa", catalog = "")
public class DeviceBrandEntity extends BaseEntity {

    private String brandName;
    private String qualityCompany;
    private String authenticbrandsGroup;
    private String financeCompany;
    private String manufacturingCompany;
    private Integer sortNo;

    public Integer getSortNo() {
        return sortNo;
    }

    public void setSortNo(Integer sortNo) {
        this.sortNo = sortNo;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getQualityCompany() {
        return qualityCompany;
    }

    public void setQualityCompany(String qualityCompany) {
        this.qualityCompany = qualityCompany;
    }

    public String getAuthenticbrandsGroup() {
        return authenticbrandsGroup;
    }

    public void setAuthenticbrandsGroup(String authenticbrandsGroup) {
        this.authenticbrandsGroup = authenticbrandsGroup;
    }

    public String getFinanceCompany() {
        return financeCompany;
    }

    public void setFinanceCompany(String financeCompany) {
        this.financeCompany = financeCompany;
    }

    public String getManufacturingCompany() {
        return manufacturingCompany;
    }

    public void setManufacturingCompany(String manufacturingCompany) {
        this.manufacturingCompany = manufacturingCompany;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", this.getId());
        obj.put("BRAND_NAME", this.getBrandName());
        obj.put("DEL_FLAG", this.getDelFlag());
        obj.put("QUALITY_COMPANY", this.getQualityCompany());
        obj.put("AUTHENTICBRANDS_GROUP", this.getAuthenticbrandsGroup());
        obj.put("FINANCE_COMPANY", this.getFinanceCompany());
        obj.put("MANUFACTURING_COMPANY", this.getManufacturingCompany());
        obj.put("SORT_NO", this.getSortNo());
        return obj;
    }

    @Override
    public String getTableName() {
        return "T_DVC_BRAND";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("BRAND_NAME", "brandName");
        obj.put("DEL_FLAG", "delFlag");
        obj.put("QUALITY_COMPANY", "qualityCompany");
        obj.put("AUTHENTICBRANDS_GROUP", "authenticbrandsGroup");
        obj.put("FINANCE_COMPANY", "financeCompany");
        obj.put("MANUFACTURING_COMPANY", "manufacturingCompany");
        obj.put("SORT_NO", "sortNo");
        return obj;
    }
}
